package com.jstyle.jclifexd.model;



import com.amap.api.location.AMapLocation;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.Transient;

import java.util.ArrayList;
import java.util.List;

/**
 * 用于记录一条轨迹，包括起点、终点、轨迹中间点、距离、耗时、平均速度、时间
 * 
 * @author
 * 
 */
@Entity(indexes = {
		@Index(value = "mDate DESC, address DESC", unique = true)
}
)
public class PathRecord {
	//@Transient
	//private AMapLocation mStartPoint;
	//@Transient
	//private AMapLocation mEndPoint;
	@Transient
	private List<AMapLocation> mPathLinePoints = new ArrayList<AMapLocation>();
	private String mDistance;
	private String mDuration;//秒数
	String mStep;
	private String mAveragespeed;//配速不是速度

	private String mDate;
	String pathline;
	String stratpoint;
	String endpoint;
	String calString;//设备回来的卡路里
	String speedListString;
	String heartListString;
	String distanceBeat;//心率带出来的距离
	String stepListString;
	String paceListString;
	String heart;
	String address;

	public String getHeart() {
		return heart;
	}

	public void setHeart(String heart) {
		this.heart = heart;
	}

	int exerciseMode;

    Long mId;
	@Generated(hash = 419524030)
	public PathRecord(String mDistance, String mDuration, String mStep, String mAveragespeed,
			String mDate, String pathline, String stratpoint, String endpoint,
			String calString, String speedListString, String heartListString,
			String distanceBeat, String stepListString, String paceListString, String heart,
			String address, int exerciseMode, Long mId) {
		this.mDistance = mDistance;
		this.mDuration = mDuration;
		this.mStep = mStep;
		this.mAveragespeed = mAveragespeed;
		this.mDate = mDate;
		this.pathline = pathline;
		this.stratpoint = stratpoint;
		this.endpoint = endpoint;
		this.calString = calString;
		this.speedListString = speedListString;
		this.heartListString = heartListString;
		this.distanceBeat = distanceBeat;
		this.stepListString = stepListString;
		this.paceListString = paceListString;
		this.heart = heart;
		this.address = address;
		this.exerciseMode = exerciseMode;
		this.mId = mId;
	}

	@Generated(hash = 1812181484)
	public PathRecord() {
	}
	public String getMDistance() {
					return this.mDistance.replace(",",".");
	}
	public void setMDistance(String mDistance) {
					this.mDistance = mDistance;
	}
	public String getMDuration() {
					return this.mDuration;
	}
	public void setMDuration(String mDuration) {
					this.mDuration = mDuration;
	}
	public String getMAveragespeed() {
					return this.mAveragespeed;
	}
	public void setMAveragespeed(String mAveragespeed) {
					this.mAveragespeed = mAveragespeed;
	}
	public String getMDate() {
					return this.mDate;
	}
	public void setMDate(String mDate) {
					this.mDate = mDate;
	}
	public String getPathline() {
					return this.pathline;
	}
	public void setPathline(String pathline) {
					this.pathline = pathline;
	}
	public String getStratpoint() {
					return this.stratpoint;
	}
	public void setStratpoint(String stratpoint) {
					this.stratpoint = stratpoint;
	}
	public String getEndpoint() {
					return this.endpoint;
	}
	public void setEndpoint(String endpoint) {
					this.endpoint = endpoint;
	}
	public Long getMId() {
					return this.mId;
	}
	public void setMId(Long mId) {
					this.mId = mId;
	}

//	public AMapLocation getmStartPoint() {
//		return mStartPoint;
//	}
//
//	public void setmStartPoint(AMapLocation mStartPoint) {
//		this.mStartPoint = mStartPoint;
//	}
//
//	public AMapLocation getmEndPoint() {
//		return mEndPoint;
//	}
//
//	public void setmEndPoint(AMapLocation mEndPoint) {
//		this.mEndPoint = mEndPoint;
//	}

	public List<AMapLocation> getmPathLinePoints() {
		return mPathLinePoints;
	}

	public void setmPathLinePoints(List<AMapLocation> mPathLinePoints) {
		this.mPathLinePoints = mPathLinePoints;
	}
	public void addPoint(AMapLocation point) {
		mPathLinePoints.add(point);
	}
	public String getCalString() {
		return this.calString;
	}
	public void setCalString(String calString) {
		this.calString = calString;
	}
	public String getSpeedListString() {
		return this.speedListString;
	}
	public void setSpeedListString(String speedListString) {
		this.speedListString = speedListString;
	}
	public String getHeartListString() {
		return this.heartListString;
	}
	public void setHeartListString(String heartListString) {
		this.heartListString = heartListString;
	}
	public String getDistanceBeat() {
		return this.distanceBeat;
	}
	public void setDistanceBeat(String distanceBeat) {
		this.distanceBeat = distanceBeat;
	}
	public String getStepListString() {
					return this.stepListString;
	}
	public void setStepListString(String stepListString) {
					this.stepListString = stepListString;
	}
	public String getMStep() {
		return this.mStep;
	}
	public void setMStep(String mStep) {
		this.mStep = mStep;
	}
	public String getPaceListString() {
					return this.paceListString;
	}
	public void setPaceListString(String paceListString) {
					this.paceListString = paceListString;
	}
	public int getExerciseMode() {
					return this.exerciseMode;
	}
	public void setExerciseMode(int exerciseMode) {
					this.exerciseMode = exerciseMode;
	}

	public String getAddress() {
		return this.address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
}
